package org.jeecg.modules.wlhy.evaluation.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.ognl.Evaluation;
import org.jeecg.modules.wlhy.evaluation.entity.HyEvaluation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 评价表
 * @Author: jeecg-boot
 * @Date:   2020-12-16
 * @Version: V1.0
 */
public interface HyEvaluationMapper extends BaseMapper<HyEvaluation> {
    /**
     * 通过运单号获取评价信息
     * @param shippingNoteNumber
     * @return
     */
    HyEvaluation getByShippingNoteNumber(@Param("shippingNoteNumber") String shippingNoteNumber);
    /**
     * 通过货主id获取评价信息
     * @param customerId
     * @return
     */
    HyEvaluation getEvaluationByCid(@Param("customerId") String customerId);
    /**
     * 通过司机id获取评价信息
     * @param driverId
     * @return
     */
    HyEvaluation getEvaluationByDid(@Param("driverId") String driverId);
}
